<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html >
    <head>
        <meta charset="UTF-8">
        <title>AdminLTE | 仪表盘</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="/style/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="/style/admin/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="/style/admin/css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="/style/admin/css/AdminLTE.css" rel="stylesheet" type="text/css" />

        <!-- jQuery 2.1.1 -->
        <script src="/style/admin/js/jquery-2.1.1.min.js" type="text/javascript"></script>
        <!-- Bootstrap -->
        <script src="/style/admin/js/bootstrap.min.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="/style/admin/js/AdminLTE/app.js" type="text/javascript"></script>
        <!-- AdminLTE for demo purposes -->
        <script src="/style/admin/js/AdminLTE/demo.js" type="text/javascript"></script>

        <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
    </head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="index.html" class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                Blog
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="/style/admin/img/avatar3.png" class="img-circle" alt="User Image" />
        </div>
        <div class="pull-left info">
            <p>你好, Admin</p>

            <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
        </div>
    </div>
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">
        <li class="Index">
            <a href="<?php echo U('Admin/Index/index');?>">
                <i class="fa fa-dashboard"></i> <span>首页</span>
            </a>
        </li>
        <li class="treeview Posts Type">
            <a href="#">
                <i class="fa fa-bar-chart-o"></i>
                <span>文章管理</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li><a href="<?php echo U('/Admin/Posts/index');?>"><i class="fa fa-angle-double-right"></i> 所有文章</a></li>
                <li><a href="<?php echo U('/Admin/Posts/create');?>"><i class="fa fa-angle-double-right"></i> 添加文章</a></li>
                <li><a href="<?php echo U('/Admin/Type/index');?>"><i class="fa fa-angle-double-right"></i> 分类管理</a></li>

            </ul>
        </li>
        <li class="Comments">
            <a href="<?php echo U('/Admin/Comments/index');?>">
                <i class="fa fa-th"></i> <span>评论管理</span>
            </a>
        </li>
        <li class="treeview Users">
            <a href="#">
                <i class="fa fa-laptop"></i>
                <span>用户管理</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li><a href="<?php echo U('/Admin/Users/index');?>"><i class="fa fa-angle-double-right"></i> 所有用户</a></li>
                <li><a href="<?php echo U('/Admin/Users/create');?>"><i class="fa fa-angle-double-right"></i> 添加用户</a></li>
            </ul>
        </li>
        <li class="Settings">
            <a href="<?php echo U('/Admin/Settings/index');?>">
                <i class="fa fa-edit"></i> <span>网站设置</span>
            </a>
        </li>
    </ul>
</section>
<script>
    $(function(){
        $(".<?php echo (CONTROLLER_NAME); ?>").addClass('active');
    })
</script>
                <!-- /.sidebar -->
            </aside>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">                
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>添加用户
                        <small><a href="<?php echo U('index');?>">用户列表</a></small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">添加用户</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box">
                                <div class="box-header">
                                    <h3 class="box-title">添加用户</h3>
                                </div><!-- /.box-header -->
                                <form role="form" action="<?php echo U('create');?>" method="post">
                                    <div class="box-body">
                                        <div class="form-group">昵称</label>
                                            <input type="text" name="nicename" class="form-control" id="exampleInputEmail1" placeholder="请输入用户名">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">用户名</label>
                                            <input type="text" name="username" class="form-control" id="exampleInputEmail1" placeholder="请输入用户名">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">电子邮件</label>
                                            <input type="email" name="email" class="form-control" id="exampleInputEmail1" placeholder="电子邮件">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputPassword1">密码</label>
                                            <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="密码">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputPassword1">确认密码</label>
                                            <input type="password" name="re_password" class="form-control" id="exampleInputPassword1" placeholder="确认密码">
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputPassword1">描述</label>
                                            <textarea id="user-content" name="content" rows="10" cols="80" style="visibility: hidden; display: none;" placeholder="请输入内容">
                                            </textarea>
                                        </div>
                                        <div class="checkbox">
                                        <label class="">
                                            <div class="icheckbox_minimal" aria-checked="true" aria-disabled="true" style="position: relative;"><input name="status_code" type="checkbox" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background-color: rgb(255, 255, 255); border: 0px; opacity: 0; background-position: initial initial; background-repeat: initial initial;"></ins></div> 激活
                                        </label>
                                        </div>
                                    </div><!-- /.box-body -->
                                    <div class="box-footer">
                                        <input type="submit" class="btn btn-primary" value="提交" >
                                    </div>
                                </form>
                            </div><!-- /.box -->
                        </div>
                    </div>

                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->
<!-- CK Editor -->
<script src="/style/admin/js/plugins/ckeditor/ckeditor.js" type="text/javascript"></script>

<script type="text/javascript">
    $(function() {
        CKEDITOR.replace('user-content');
    });
</script>